package cn.briarbear.myblog.entity.dto;

/**
 * 返回状态类
 *
 * @auther Val1ant
 * @blog http://www.val1ant.xin
 * @create 2018-05-10-10:58
 */
public class ResponseStatus {
    protected int resultCode;  //返回结果代码
    protected boolean hasError;  //错误标志位

    public ResponseStatus() {
    }

    public ResponseStatus(int resultCode, boolean hasError) {
        this.resultCode = resultCode;
        this.hasError = hasError;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public boolean isHasError() {
        return hasError;
    }

    public void setHasError(boolean hasError) {
        this.hasError = hasError;
    }
}
